package com.share.finance.risk.third.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 云真信调用日志表
 * </p>
 *
 * @author author
 * @since 2022-07-27
 */
@Data
@Accessors(chain = true)
@TableName("trd_channel_request_log")
public class ChannelRequestLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 接口id
     */
    @TableField(value = "int_id")
    private String intId;
    /**
     * 风控会话唯一标识
     */
    @TableField(value = "session_id")
    private String sessionId;
    /**
     * 产品编码
     */
    @TableField(value = "product_code")
    private String productCode;
    /**
     * 用户名称
     */
    private String name;
    /**
     * 手机号码
     */
    @TableField(value = "phone_no")
    private String phoneNo;
    /**
     * 身份证号码
     */
    @TableField(value = "id_card")
    private String idCard;
    /**
     * 银行卡号
     */
    @TableField(value = "bank_card")
    private String bankCard;
    /**
     * 请求数据
     */
    @TableField(value = "request_data")
    private String requestData;
    /**
     * 返回数据
     */
    @TableField(value = "response_data")
    private String responseData;

    @TableField(value = "from_cache")
    private Integer fromCache;

    @TableField(value = "cache_key")
    private String cacheKey;


    @TableField(value = "fee_status")
    private String feeStatus;

    /**
     * 接口请求消耗时间(单位：毫秒)
     */
    @TableField(value = "process_time")
    private Long processTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "success_field_value")
    private String successFieldValue;
    @TableField(value = "fee_field_value")
    private String feeFieldValue;
}
